package cn.hesheng.thread;

import cn.hesheng.Bunessis;

public class ThreadB extends Thread {
	Bunessis bu;
	
	public ThreadB() {
	}
	
	public ThreadB(Bunessis bu) {
		this.bu = bu;
	}


	@Override
	public void run() {
		if (bu == null) {
			System.out.println("thread B is call...");
		} else {
			bu.bMethod();
		}
		//bu.aMethod();
	}
}
